﻿using AnyLink.PosClient.ViewModel;

namespace Microsoft.Extensions.DependencyInjection
{
    /// <summary>
    /// 为ViewModel提供扩展方法
    /// </summary>
    public static class ViewModelExtenssions
    {
        /// <summary>
        /// 注册ViewModel
        /// </summary>
        /// <param name="services"></param>
        public static void AddViewModel(this IServiceCollection services)
        {
            services.AddSingleton<MainViewModel>();
            services.AddSingleton<LoginViewModel>();
            services.AddSingleton<SaleViewModel>();
        }
    }
}
